import { View, WebView } from '@tarojs/components'
import { useLoad, useRouter } from '@tarojs/taro';
import './index.scss'

export default function News() {

  // const url = 'https://www.baidu.com/'
  const router = useRouter();

  useLoad(() => {
    console.log('Page loaded.')
    ;
  })


  return (
    <View className='news bg-[#F5F5F5] min-h-screen pb-[80px]'>
      <WebView src={router.params.url || ''} />
    </View>
  )
}
